﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AccesoBD;

namespace PrensentacionEscritorio
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string nombre = textBox1.Text;
            Class1 cs = new Class1();
            int res = cs.registrarTipoDoc(nombre);
            if (res > 0)
                label1.Text = "Se registro";
            else
                label1.Text = "No se registro";
        }
    }
}
